package study.lxy.spring.springboot2.utils.consts;

public enum ErrorCode {

    SYS_ERROR("9999","系统错误"),
    NAME_USED("0001","用户名已被占用"),
    USER_NOT_FUND("0002","用户找不到");

    ErrorCode(String code,String message){
        this.code = code;
        this.message = message;
    }

    private String code;
    private String message;

    public String getCode(){
        return code;
    }

    public String getMessage(){
        return message;
    }

}
